<style>    
    #testFileInput2{
        height: 30px; width: 102px; margin-left: 128px;
    }
    #preview1, #topPhpto
        {  
            width:150px;  
            padding-left: 65px;padding-top: 15px; border-top-width: 5px;
            //height:150px;  
        }
    #preview2, #topPhpto2{
        width:150px;
        margin-left: 65px;
    }
    #preview3, #topPhpto3{
        width:150px;
        margin-left: 65px;
    }
    .uploadify-button-text{
        width: 100px;
    }
    #testFileInput3-button {
        height: 30px; line-height: 30px; width: 120px; margin-left: 130px;
    }
    #testFileInput4-button {
        height: 30px; line-height: 30px; width: 120px; margin-left: 130px;
    }
</style>
<div class="pageContent">	
    <form method="post" action="__CONTROLLER__/dEdit?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <input type="hidden" name='id' value="<{$info.id}>"/>
        <input type="hidden" name="image1" value="<{$info.image|subImg=1}>" id="img1">
        <input type="hidden" name="image2" value="<{$info.image|subImg=2}>" id="img2">
        <input type="hidden" name="image3" value="<{$info.image|subImg=3}>" id="img3">
        <div class="pageFormContent" layoutH="58">
            <div class="unit">
                <label>帖子名称：</label>
                <input type="text" name="title" size="15"  value="<{$info.title}>" class='required' />
            </div>
            <div class="unit">
                <label>积分：</label>
                <input type="text" name="reward" size="15"  value="<{$info.reward}>" class='' />
            </div>
             <div class="unit">
                <label>技术分类：</label>
                <select class="" name="type" style="width: 101px;">
                    <foreach name="docType" item="list">
                        <option value="<{$list.id}>" <if condition="$list['id'] eq $info['type']">selected</if>><{$list.name}></option>
                    </foreach>
                </select>
            </div>
             <div class="unit">
                <label>内容：</label>
                <textarea name="content" cols="15" rows="4"><{$info.content}></textarea>
            </div>
            <div id="preview1" href=""><img src="<{$Think.const.PUBLIC_URL}>upload/<{$info.image|subImg=1}>" id='topPhpto'/></div>
            <div class="unit">
                <label>上传图片1：</label>  
                <input id="testFileInput2" type="file" name="images"                                        
                    uploaderOption="{
			swf:'<{$Think.const.DWZ_URL}>uploadify/scripts/uploadify.swf',
			uploader:'__CONTROLLER__/docphoto&did=<?php echo $_SESSION['doc_img'];?>',
                        formData:{authId:<?php echo $_SESSION['authId'];?>, ajax:1},
			buttonText:'请选择文件',
			fileSizeLimit:'20000KB',
			fileTypeDesc:'*.jpg;*.jpeg;*.gif;*.png;',
			fileTypeExts:'*.jpg;*.jpeg;*.gif;*.png;',
			auto:true,
                        onUploadSuccess:function(file,data,respore){
                            $('#topPhpto').attr('src','<{$Think.const.PUBLIC_URL}>'+'upload/'+data);
                            $('#img1').val(data);
                        }
                    }"
                />
            </div>
            <div id="preview2" href=""><img src="<{$Think.const.PUBLIC_URL}>upload/<{$info.image|subImg=2}>" id='topPhpto2'/></div>
            <div class="unit">
                <label>上传图片2：</label>  
                <input id="testFileInput3" type="file" name="images"                                        
                    uploaderOption="{
			swf:'<{$Think.const.DWZ_URL}>uploadify/scripts/uploadify.swf',
			uploader:'__CONTROLLER__/docphoto&did=<?php echo $_SESSION['doc_img'];?>',
                        formData:{authId:<?php echo $_SESSION['authId'];?>, ajax:1},
			buttonText:'请选择文件',
			fileSizeLimit:'20000KB',
			fileTypeDesc:'*.jpg;*.jpeg;*.gif;*.png;',
			fileTypeExts:'*.jpg;*.jpeg;*.gif;*.png;',
			auto:true,
                        onUploadSuccess:function(file,data,respore){
                            $('#topPhpto2').attr('src','<{$Think.const.PUBLIC_URL}>'+'upload/'+data);
                            $('#img2').val(data);
                        }
                    }"
                />
            </div>
            <div id="preview3" href=""><img src="<{$Think.const.PUBLIC_URL}>upload/<{$info.image|subImg=3}>" id='topPhpto3'/></div>
            <div class="unit">
                <label>上传图片3：</label>  
                <input id="testFileInput4" type="file" name="images"                                        
                    uploaderOption="{
			swf:'<{$Think.const.DWZ_URL}>uploadify/scripts/uploadify.swf',
			uploader:'__CONTROLLER__/docphoto&did=<?php echo $_SESSION['doc_img'];?>',
                        formData:{authId:<?php echo $_SESSION['authId'];?>, ajax:1},
			buttonText:'请选择文件',
			fileSizeLimit:'20000KB',
			fileTypeDesc:'*.jpg;*.jpeg;*.gif;*.png;',
			fileTypeExts:'*.jpg;*.jpeg;*.gif;*.png;',
			auto:true,
                        onUploadSuccess:function(file,data,respore){
                            $('#topPhpto3').attr('src','<{$Think.const.PUBLIC_URL}>'+'upload/'+data);
                            $('#img3').val(data);
                        }
                    }"
                />
            </div>
            <gt name="Think.session.type" value="1">
                <neq name="info['id']" value=''>
                    <div class="unit">
                        <label style="width: 108px;">是否置顶：</label>
                        <label style="width: 38px;"><input type="radio" name="top" value="1" />是</label>
                        <label><input type="radio" name="top" value='0' checked/>否</label> 
                    </div>
                </neq>
            </gt>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>	
</div>
